﻿@model Webapi.Models.LicenceCode
@{
}
<div class="page-header">
    <a class="btn btn-primary navbar-btn" href="/control/index">←返回</a>
</div>
<form role="form" action="/control/edit" method="post">
    @Html.HiddenFor(o => o.L_Id)
    <div class="form-group">
        <label for="L_Title">标题</label>
        @Html.TextBoxFor(o => o.L_Title, new { @class = "form-control", placeholder = "标题" })
    </div>
    <div class="form-group">
        <label for="L_ProId">项目标识</label>
        @Html.TextBoxFor(o => o.L_ProId, new { @class = "form-control", placeholder = "项目标识" })
    </div>
    <div class="form-group">
        <label for="L_Code">密钥</label>
        @Html.TextBoxFor(o => o.L_Code, new { @class = "form-control", placeholder = "密钥" })
    </div>
    <div class="form-group">
        <label for="L_TimeUseful">有效期</label>
        @Html.TextBoxFor(o => o.L_TimeUseful, new { @class = "form-control", placeholder = "有效期" })
    </div>
    <div class="form-group">
        <label for="L_Remark">备注</label>
        @Html.TextBoxFor(o => o.L_Remark, new { @class = "form-control", placeholder = "备注" })
    </div>
    <div class="form-group">
        <label for="L_State">状态</label>&nbsp;
        <label class="radio-inline">
            <input type="radio" name="L_State" value="0" @(Model.L_State == 0 ? "checked" : "")> 正常
        </label>
        <label class="radio-inline">
            <input type="radio" name="L_State" value="1" @(Model.L_State == 1 ? "checked" : "")> 冻结
        </label>
    </div>

    <button type="submit" class="btn btn-primary">保存</button>
    <button type="reset" class="btn btn-info">重置</button>
</form> 